package org.eiahe.hr.attendance.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.eiahe.hr.attendance.domain.OvertimeRule;

import java.util.Date;

/**
 * 加班规则视图对象
 *
 * @author zhangnn
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = OvertimeRule.class)
public class OvertimeRuleVo {

    /**
     * 规则ID
     */
    @ExcelProperty(value = "规则ID")
    private Long ruleId;

    /**
     * 关联班次ID
     */
    private Long shiftId;

    /**
     * 班次名称
     */
    @ExcelProperty(value = "班次名称")
    private String shiftName;

    /**
     * 工作日加班阈值(分钟)
     */
    @ExcelProperty(value = "工作日加班阈值(分钟)")
    private Integer workdayThresholdMinutes;

    /**
     * 周末规则
     */
    @ExcelProperty(value = "周末规则")
    private String weekendRule;

    /**
     * 节假日规则
     */
    @ExcelProperty(value = "节假日规则")
    private String holidayRule;

    /**
     * 最小计算单位(分钟)
     */
    @ExcelProperty(value = "最小计算单位(分钟)")
    private Integer minUnitMinutes;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 班次信息
     */
    private ShiftVo shiftVo;
}
